package com.example.controller;

import com.example.common.Result;
import com.example.service.TtsService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/tts")
public class TtsController
{
    @Resource
    private TtsService ttsService;
    @PostMapping("/txt/{txt}")
    public Result change(@PathVariable String txt)
    {
        return Result.success(ttsService.change(txt));
    }
}
